package com.joyintech.feign;


import com.joyintech.config.FeignConfig;
import com.joyintech.util.ResponseData;
import com.joyintech.vo.DwdAstPlanManagementPageVo;
import com.joyintech.vo.DwdAstPlanManagementVo;
import com.joyintech.vo.ManagementVo;
import com.joyintech.vo.PortfolioManagementNewVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 理财
 */
@FeignClient(name = "limitmanageService", configuration = FeignConfig.class)
public interface LimitmanageService {

    /**
     * python调用
     *
     * @param planId
     * @return
     */
//    @GetMapping(value = "/limitmanage/dwd-ast-plan-management/selectById")
//    String managementSelectById(@RequestParam String planId);

    /**
     * 查询单条标准组合
     *
     * @param vo
     * @return
     */
    @GetMapping(value = "/limitmanage/dwd-ast-plan-management/selectPortfolioManagement")
    String selectPortfolioManagement(@RequestBody PortfolioManagementNewVo vo);

    /**
     * 根据id查询方案详情
     *
     * @param planId
     * @return
     */
    @GetMapping(value = "/limitmanage/dwd-ast-plan-management/selectById")
    String astPlanSelectById(@RequestParam(required = false) String planId);

    /**
     * 查询单条标准组合
     *
     * @param vo
     * @return
     */
    @PostMapping(value = "/limitmanage/dwd-ast-plan-management/saveAll", produces = "application/json;charset=UTF-8")
    String astPlanSaveAll(@RequestBody DwdAstPlanManagementVo vo);

    /**
     * 查询历史方案
     *
     * @param vo
     * @return
     */
    @PostMapping(value = "/limitmanage/dwd-ast-plan-management/selectList", produces = "application/json;charset=UTF-8")
    String astPlanSelectList(@RequestBody DwdAstPlanManagementPageVo vo);



}

